# include <stdio.h>
# include <conio.h>
void main()
{double *mas,S=0;
 int n,i;
 printf("Size of massiv=");scanf("%d",&n);
 mas=new double[n];
 for(i=0;i<n;i++){
	printf("mas[%d]=",i);
	scanf("%lg",&mas[i]);
	if(mas[i]>0) S=S+mas[i];
		 };
 printf("Sum of pozitive elements=%lg",S);
 delete []mas;
 getch();
}
